<?php

        require "../../system/framework.php";  
        
        $db = new db();
        $data = array();
        
        
        //$dataValue = explode(";", "status=1");
        $dataValue = explode(",", "[php_property:data]");
        
        for ($n=0; $n<sizeof($dataValue); $n++) {
            
            $tmp = explode("=", $dataValue[$n]);
            $data[$tmp[0]] = $tmp[1];
            
        }
        
        
        
        $data['id2'] = $_REQUEST['id2'];
        db::saveData("[php_property:table]", $data);
        
        http::redirect("[php_property:redirect]");
        
        
        
        /*$redirect = "[php_property:redirect]";
        if ($redirect == "") $redirect = $_SERVER['HTTP_REFERER'];
        header("Location: $redirect");  */
          
?>